GtkCellView: Explicitly notify for orientation
authorMatthias Clasen <mclasen@redhat.com>
Sun, 8 Jun 2014 15:29:32 +0000 (11:29 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 9 Jun 2014 17:30:57 +0000 (13:30 -0400)
gtk/gtkcellview.c

index d554dd89409500c6517e880bb501183c9b372580..ba19dca00faab23ad1434c0ff3269d962438f094 100644 (file)
@@ -439,11 +439,14 @@ gtk_cell_view_set_property (GObject      *object,
   switch (param_id)
     {
     case PROP_ORIENTATION:
-      priv->orientation = g_value_get_enum (value);
-      if (priv->context)
-        gtk_cell_area_context_reset (priv->context);
-
-      _gtk_orientable_set_style_classes (GTK_ORIENTABLE (object));
+      if (priv->orientation != g_value_get_enum (value))
+        {
+          priv->orientation = g_value_get_enum (value);
+          if (priv->context)
+            gtk_cell_area_context_reset (priv->context);
+          _gtk_orientable_set_style_classes (GTK_ORIENTABLE (object));
+          g_object_notify_by_pspec (object, pspec);
+        }
       break;
     case PROP_BACKGROUND:
       {